package write

// type Steps struct {
// 	Step []Tests `json:"step" yaml:"step"`
// }

type Tests struct {
	Test ReqInfo `json:"test,omitempty" yaml:"test,omitempty"`
}

type ReqInfo struct {
	//Test string `json:"test" yaml:"test"`
	Name     string   `yaml:"name" json:"name"`
	Request  Request  `yaml:"request" json:"request"`
	Validate []Verify `yaml:"validate,omitempty" json:"validate,omitempty"`
}

type Request struct {
	Url     string            `yaml:"url" json:"url"`
	Path    string            `yaml:"path" json:"path"`
	Method  string            `yaml:"method" json:"method"`
	Headers map[string]string `yaml:"headers,omitempty" json:"headers,omitempty"`
	Param   map[string]string `yaml:"param,omitempty" json:"param,omitempty"`
	Body    interface{}       `yaml:"body,omitempty" json:"body,omitempty"`
	//Data interface{} `yaml:"data,omitempty" json:"data,omitempty"`

}

type Item struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

type Verify struct {
	Logic  string        `json:"logic,omitempty" yaml:"logic,omitempty"`
	Action string        `json:"action,omitempty" yaml:"action,omitempty"`
	Params []interface{} `json:"params,omitempty" yaml:"params,omitempty"`
}
